//
//  HelpViewController.m
//  FunOCR
//
//  Created by Luke Du on 8/03/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "HelpViewController.h"


@implementation HelpViewController
@synthesize webView;


- (void)dealloc {
    [super dealloc];
	
	[webView release];
}







- (void)viewDidLoad
{
	NSString *path = [[NSBundle mainBundle] pathForResource:@"Help" ofType:@"html"];
	NSFileHandle *readHandle = [NSFileHandle fileHandleForReadingAtPath:path];
	
	NSURL *baseURL = [NSURL fileURLWithPath:path];
	
	NSString *htmlString = [[NSString alloc] initWithData: 
							[readHandle readDataToEndOfFile] encoding:NSUTF8StringEncoding];
	
	[self.webView loadHTMLString:htmlString baseURL:baseURL];
	[htmlString release];
}






@end
